﻿<cfoutput>
	
<cfif IsUserLoggedIn()>
	<ul>
		<li>#linkTo(controller="Auth", action="logout", text="Logout")#</li>
		<li>#linkTo(controller="Dashboard", text="Dashboard")#</li>
		<li>#linkTo(controller="Preference", text="Preference")#</li>
		
		<cfif IsUserInAnyRole("admin")>
			<li>
				<a href="##">Privileges</a>
				<ul>
					<li>#linkTo(controller="PrivilegesUsers", text="Users")#</li>
					<li>#linkTo(controller="PrivilegesMenuGroups", text="Menu Groups")#</li>
					<li>#linkTo(controller="PrivilegesEmployeeAuthorization", text="Employee Authorization")#</li>
				</ul>
			</li>
		</cfif>
		
		<cfif IsUserInAnyRole("admin,company")>
			<li>
				<a href="##">Company</a>
				<ul>
					<cfif IsUserInAnyRole("admin,company_organization_tree")>
						<li>#linkTo(controller="CompanyOrganizationTree", text="Organization Tree")#</li>
						<li>#linkTo(controller="CompanyRegulations", text="Regulations")#</li>
					</cfif>
					
					<cfif IsUserInAnyRole("admin,company_setting")>
						<li>
							<a href="##">Setting</a>
							<ul>
								<cfif IsUserInAnyRole("admin,company_setting_manage_company")>
									<li>#linkTo(controller="CompanySettingManageCompany", text="Manage Company")#</li>
								</cfif>
								<cfif IsUserInAnyRole("admin,company_setting_organization_tree")>
									<li>#linkTo(controller="CompanySettingOrganizationTree", text="Organization Tree")#</li>
								</cfif>
								<cfif IsUserInAnyRole("admin,company_setting_grade")>
									<li>#linkTo(controller="CompanySettingGrade", text="Grade")#</li>
								</cfif>
								<cfif IsUserInAnyRole("admin,company_setting_grade_group")>
									<li>#linkTo(controller="CompanySettingGradeGroup", text="Grade Group")#</li>
								</cfif>
								<cfif IsUserInAnyRole("admin,company_setting_job_title")>
									<li>#linkTo(controller="CompanySettingJobTitle", text="Job Title")#</li>
								</cfif>
								<cfif IsUserInAnyRole("admin,company_setting_office_location")>
									<li>#linkTo(controller="CompanySettingOfficeLocation", text="Office Location")#</li>
								</cfif>
							</ul>
						</li>
						
					</cfif>
				</ul>
			</li>
		</cfif>
		
		<cfif IsUserInAnyRole("admin,employee")>
			<li>
				<a href="##">Employee</a>
				<ul>
					<cfif IsUserInAnyRole("admin,employee_my_information")>
						<li>#linkTo(controller="EmployeeMyInformation", text="My Information")#</li>
					</cfif>
					
					<cfif IsUserInAnyRole("admin,employee_manage_employee")>
						<li><a href="##">Manage Employees</a>
							<ul>
								<cfif IsUserInAnyRole("admin,employee_manage_employee_list")>
									<li>#linkTo(controller="EmployeManageEmployeeList", text="List")#</li>
								</cfif>
								<cfif StructKeyExists(SESSION, "employee")>
									<cfif IsUserInAnyRole("admin,employee_manage_employee_personal")>
										<li>#linkTo(controller="EmployeeManageEmployeePersonal", text="Personal")#</li>
									</cfif>
									<cfif IsUserInAnyRole("admin,employee_manage_employee_address")>
										<li>#linkTo(controller="EmployeeManageEmployeeAdres", text="Address")#</li>
									</cfif>
									<cfif IsUserInAnyRole("admin,employee_manage_employee_family")>
										<li>#linkTo(controller="EmployeeManageEmployeeFamily", text="Family")#</li>
									</cfif>
									<cfif IsUserInAnyRole("admin,employee_manage_employee_education")>
										<li>#linkTo(controller="EmployeeManageEmployeeEducation", text="Education")#</li>
									</cfif>
									<cfif IsUserInAnyRole("admin,employee_manage_employee_job_experience")>
										<li>#linkTo(controller="EmployeeManageEmployeeJobExperience", text="Job Experience")#</li>
									</cfif>
									<cfif IsUserInAnyRole("admin,employee_manage_employee_employment")>
										<li>#linkTo(controller="EmployeeManageEmployeeEmployment", text="Employment")#</li>
									</cfif>
									<cfif IsUserInAnyRole("admin,employee_manage_employee_career_history")>
										<li>#linkTo(controller="EmployeeManageEmployeeCareerHistory", text="Career History")#</li>
									</cfif>
								</cfif>
							</ul>							
						</li>
					</cfif>
					
					<cfif IsUserInAnyRole("admin,employee_report")>
						<li>
							<a href="##">Report</a>
							<ul>
								<cfif IsUserInAnyRole("admin,employee_report_curriculum_vitae")>
									<li>#linkTo(controller="EmployeeReportCurriculumVitae", text="CurriculumVitae")#</li>
								</cfif>
							</ul>
						</li>
					</cfif>
					
					<cfif IsUserInAnyRole("admin,employee_setting")>
						<li>#linkTo(controller="EmployeeSetting", text="Setting")#</li>
					</cfif>
				</ul>
			</li>
		</cfif>
	</ul>
</cfif>
</cfoutput>